.flexContainer {
  display: block;
  width: 100%;
  margin: 1rem 0;
  border-radius: var(--mantine-radius-md);
  position: relative;
  max-width: 900px;
  height: 100%;
  caret-color: transparent;
}

.flexContainer.selected {
  outline: 2px solid var(--mb-color-brand);
  outline-offset: 2px;
}

.flexContent > :global(div[data-node-view-wrapper]) {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: var(--mb-card-container-col-widths);
}

.flexContent {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.flexContent :global(.node-cardEmbed) :global(.editor-style-boundary) {
  margin: 0;
}

.flexContent :global(.node-cardEmbed) {
  height: 100%;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  caret-color: auto;
  transform: translateZ(0);
}

.flexContent :global(.node-cardEmbed):first-child {
  padding-left: 0;
}

.flexContent :global(.node-cardEmbed):last-child {
  padding-right: 0;
}

.flexContent :global(.node-supportingText) {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.flexContent :global(.node-supportingText):first-child {
  margin-left: 0;
}

.flexContent :global(.node-supportingText):last-child {
  margin-right: 0;
}

/* Resize handles */
.resizeHandle {
  position: absolute;
  top: calc(50% - 2rem);
  width: 0.25rem;
  height: 4rem;
  margin-left: -0.125rem;
  cursor: col-resize;
  background-color: transparent;
  border-radius: 100px;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    background-color 0.2s ease;
  z-index: 10;
}

.flexContainer:hover .resizeHandle {
  opacity: 1;
  background-color: var(--mb-color-text-secondary);
}

.flexContainer.resizing {
  user-select: none;
}

.flexContainer.resizing .resizeHandle {
  opacity: 1;
}
